package com.intellagric.interfaces.product;

import com.intellagric.common.bean.LayuiDataGridResult;
import com.intellagric.common.bean.ResponseMessage;
import com.intellagric.pojo.ProductUsed;

import java.text.ParseException;

public interface ProductUsedService {
    ResponseMessage selectProductUsedById(String id);

    ResponseMessage insertProductUsed(ProductUsed ProductUsed);

    ResponseMessage deleteProductUsed(String id);

    ResponseMessage editProductUsed(ProductUsed ProductUsed);

    LayuiDataGridResult getList(int page, int limit);

    LayuiDataGridResult batchDeleteProductUsed(String[] ids);

    LayuiDataGridResult getProductUsedByKeyword(int page, int limit, String keyword);

    int getUsedCountByProId(String productId);

    LayuiDataGridResult getListByCategoryId(int page, int limit, String categoryId);

    LayuiDataGridResult getBookedList(int page, int limit);

    LayuiDataGridResult getBookedListByCategoryId(int page, int limit, String categoryId);

    ResponseMessage insertProductBooked(ProductUsed ProductUsed);

    LayuiDataGridResult bookReturn(String productUsedId);

    LayuiDataGridResult batchBookReturn(String[] productUsedIds);

    String[] getRecentDate();

    long[] getRecentData() throws ParseException;
    LayuiDataGridResult getProductBookedByKeyword(int page, int limit, String keyword);
}
